<div class="post">
  <div class="title">
    <?php echo CHtml::link(CHtml::encode($post->title),array('post/show','id'=>$post->id)); ?>
  </div>
  <div class="author">
    <?php if(!Yii::app()->user->isGuest): ?>
    [<?php echo '<span class="'.strtolower($post->statusText).'">'.$post->statusText.'</span>'; ?>]
    <?php endif; ?>
    publicado por <?php echo $post->author->realname . ' el d&iacute;a ' . Yii::app()->dateFormatter->formatDateTime($post->createTime, 'long','short'); ?>
  </div>
  <div class="content">
    <?php echo $post->content; ?>
  </div>
  <div class="nav">
    <b>Etiquetas:</b>
    <?php echo $this->getTagLinks($post); ?>
    <br/>
    <?php if ($list):?>
    <?php echo CHtml::link('Sigue leyendo',array('post/show','id'=>$post->id)); ?> |
    <?php endif; ?>
    <?php echo CHtml::link("Comentarios ({$post->commentCount})",array('post/show','id'=>$post->id,'#'=>'comments')); ?> |
    <?php if(!Yii::app()->user->isGuest): ?>
    <?php echo CHtml::link('Modificar',array('post/update','id'=>$post->id)); ?> |
    <?php echo CHtml::linkButton('Eliminar',array(
	   'submit'=>array('post/delete','id'=>$post->id),
	   'confirm'=>"Quieres eliminar este artículo?",
    )); ?> |
    <?php endif; ?>
    &Uacute;ltima modificaci&oacute;n: <?php echo Yii::app()->dateFormatter->formatDateTime($post->updateTime,'long','short'); ?>
  </div>
</div><!-- post -->
